Skip to main content

Authentication

POST : http://<base_url>/digipay/v3/auth/authenticate

Basic Auth :

Digipay provides Authorization to clients through the Basic Auth header. Your Client ID will serve as your Username while the Secret Key will serve as your Password. The API will require this header for every request.

HEADERS:-

ParameterTypeDescription
UserNameStringEnter Client id as username
PasswordStringEnter Your secret key as Password

Response:-

Response 200(OK)

{
"status_code": 200,
"data": {
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlMzgyYzEzMGFlOGU0YmRmYWIyZjg4ZTE0YjZjMTlhOSIsInJvbGVzIjpbIlJPTEVfTUVSQ0hBTlQiXSwiZXhwIjoxNzA2MTAwNTE4fQ.fYvleRbfU0kTo2DXK3nc_Kz2uCspiauU5G-PqsQIrio",
"expiry_time": "2024-01-24 18:18:38"
}
}
access_token : token returned if the client is verified
expiry_time : expiry time of token




Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}

RESPONSES :-

Status CodeDescription
200OK
400Bad Request
404Not Found
500Internal Server Error